package com.app.shop.adapters;

import android.view.View;
import android.widget.ImageView;

import androidx.annotation.Nullable;

import com.app.library.utils.GlideUtils;

import com.app.shop.R;
import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.BaseViewHolder;

import java.util.List;


public class TiaoSaoListAdapter extends BaseQuickAdapter<String, TiaoSaoListAdapter.ViewHolder> {


    public TiaoSaoListAdapter(int layout, @Nullable List<String> data) {
        super(layout, data);
    }


    @Override
    protected void convert(ViewHolder holder, String bean) {

        GlideUtils.getInstance().loadImage(mContext, bean, holder.imgv_pic);
    }


    public class ViewHolder extends BaseViewHolder {
        ImageView imgv_pic;


        public ViewHolder(View view) {
            super(view);
            imgv_pic = view.findViewById(R.id.imgv_list);
        }
    }
}
